package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * OrganFriendList entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "organ_friend_list", catalog = "imcdbserver")
public class OrganFriendList implements java.io.Serializable {

	// Fields

	private OrganFriendListId id;
	private String organFriendDate;
	private Integer organId;
	private Integer userSort;

	// Constructors

	/** default constructor */
	public OrganFriendList() {
	}

	/** minimal constructor */
	public OrganFriendList(OrganFriendListId id) {
		this.id = id;
	}

	/** full constructor */
	public OrganFriendList(OrganFriendListId id, String organFriendDate,
			Integer organId, Integer userSort) {
		this.id = id;
		this.organFriendDate = organFriendDate;
		this.organId = organId;
		this.userSort = userSort;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "organFriendId", column = @Column(name = "organ_friend_id", nullable = false)),
			@AttributeOverride(name = "uid", column = @Column(name = "uid", nullable = false)),
			@AttributeOverride(name = "corpId", column = @Column(name = "corp_id", nullable = false)) })
	public OrganFriendListId getId() {
		return this.id;
	}

	public void setId(OrganFriendListId id) {
		this.id = id;
	}

	@Column(name = "organ_friend_date", length = 20)
	public String getOrganFriendDate() {
		return this.organFriendDate;
	}

	public void setOrganFriendDate(String organFriendDate) {
		this.organFriendDate = organFriendDate;
	}

	@Column(name = "organ_id")
	public Integer getOrganId() {
		return this.organId;
	}

	public void setOrganId(Integer organId) {
		this.organId = organId;
	}

	@Column(name = "user_sort")
	public Integer getUserSort() {
		return this.userSort;
	}

	public void setUserSort(Integer userSort) {
		this.userSort = userSort;
	}

}